package com.damai.pay;

import com.citywithincity.db.Db;

public class PayStatusHandler {
	
	private String statusField;
	private int initStatus;
	private String tableName;
	private String keyName;
	
	public boolean lockStatus(String id){
		return Db.ar().where(statusField,initStatus).where(keyName,id).update(tableName) > 0;
	}
	
	public void handle(String id){
		if(lockStatus(id)){
			
			
			
		}
	}
	
	

}
